package com.hxzy.tms.service;

import com.hxzy.tms.entity.User;
import com.hxzy.tms.service.ServiceResult;

public interface UserService {
    User login(String email,String passwd,String ip);
    ServiceResult<User> register(String email, String passwd, String nickname, String realname, long mobile,
            String emailVerification, String ip);
    ServiceResult<String> generateUsername(String ip);

    ServiceResult<String> generateSessionHash(String ip);

    ServiceResult<User> getUser(String hash, String ip);
}
